﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormInputValueType_list.aspx.cs"
    Inherits="TRPOP.CMS.Web.Admin.FormInputValueType_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>可选值管理-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <script src="../js/FormInputValueType_list.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="table_form">
        <caption>
            可选值管理
        </caption>
        <tbody>
            <tr class="tr_item">
                <th>
                    <strong>可选值类别</strong>
                </th>
                <td>
                    <cms:DropDownList ID="ddlFormInputValueType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlFormInputValueType_SelectedIndexChanged">
                    </cms:DropDownList>
                    &nbsp;&nbsp;
                    <input class="button_style" id="FormInputValueTypeSave" name="reset" value="修改此类型"
                        type="button">
                    &nbsp;&nbsp;
                    <input class="button_style" id="FormInputValueTypeAdd" name="reset" value="添加新的类型"
                        type="button">
                    &nbsp;&nbsp;
                    <cms:Button CssClass="button_style" ID="btnSubmit" Text="删除" OnClientClick="return CheckForm(this.form);"
                        runat="server" OnClick="btnSubmit_Click" />
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    <strong>可选值</strong>
                </th>
                <td>
                    <cms:DropDownList ID="ddlFormInputValue" runat="server" Style="margin-top: 0px">
                    </cms:DropDownList>
                    <input class="button_style" name="reset" id="ddlFormInputValueAdd" value="添加新的可选值"
                        type="button">
                </td>
            </tr>
        </tbody>
        <br>
        <table class="table_list">
            <caption>
                <%=m_strTitle %><%=m_straddinfo%></caption>
            <tbody>
                <tr align="center">
                    <th class="rptlistTitle">
                        <strong>类型</strong>
                    </th>
                    <th class="rptlistTitle">
                        <strong>可选值名称</strong>
                    </th>
                    <th>
                        <strong>操作</strong>
                    </th>
                </tr>
                <cms:Repeater ID="rptList" runat="server">
                    <ItemTemplate>
                        <tr class="tr_listitem" onmouseout="this.className='tr_mouseout'" onmouseover="this.className='tr_mouseover'">
                            <td class="align_c">
                                <%=m_strTitle%>
                            </td>
                            <td class="align_l " align="center">
                                <%# Eval("Name")%>
                            </td>
                            <td class="align_c">
                                <a href="javascript:show_dialog('FormInputValue_save.aspx?id=<%#Eval("FormInputValueId")%>&cid=<%#Eval("FormInputValueTypeId")%>&pid=<%#Eval("ParentId")%>',500,200);">
                                    修改</a> | <a href="javascript:show_dialog('FormInputValue_save_sort.aspx?id=<%#Eval("FormInputValueId")%>&cid=<%#Eval("FormInputValueTypeId")%>&pid=<%#Eval("ParentId")%>',500,420);">
                                        排序</a> |
                                <cms:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClick="lbtnDelete_Click"
                                    CommandArgument='<%#Eval("FormInputValueId") %>' OnClientClick="return confirm('你确定要删除吗？');"></cms:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </cms:Repeater>
            </tbody>
        </table>
    </table>
    </form>
</body>
</html>
